package com.huilian.tool.work.weixin.dto;

import lombok.Data;

/**
 * @Author 少凡
 * @Date 2022-07-11 11:25
 * version 1.0
 */
@Data
public class Media {

    @Data
    public static class Text {
        private String content;

        public Text() {
        }

        public Text(String content) {
            this.content = content;
        }
    }

    @Data
    public static class Image {
        private String media_id;

        public Image() {
        }

        public Image(String media_id) {
            this.media_id = media_id;
        }
    }

    @Data
    public static class Video {
        private String media_id;

        public Video() {
        }

        public Video(String media_id) {
            this.media_id = media_id;
        }
    }

    @Data
    public static class Link {
        private String media_id;
        private String title;
        private String url;
        private String picurl;
        private String desc;

        public Link() {
        }

        public Link(String media_id, String title, String url, String picurl, String desc) {
            this.media_id = media_id;
            this.title = title;
            this.url = url;
            this.picurl = picurl;
            this.desc = desc;
        }
    }

    @Data
    public static class MiniProgram {
        private String title;
        private String pic_media_id;
        private String appid;
        private String page;

        public MiniProgram() {
        }

        public MiniProgram(String title, String pic_media_id, String appid, String page) {
            this.title = title;
            this.pic_media_id = pic_media_id;
            this.appid = appid;
            this.page = page;
        }
    }

    @Data
    public static class File{
        private String media_id;

        public File() {
        }

        public File(String media_id) {
            this.media_id = media_id;
        }
    }
}
